package pojo;

import java.util.Date;

// 值日安排类（DutySchedule）
public class DutySchedule {
    private int dutyId;
    private int studentId;
    private String Number;
    private String StuName;
    private Date dutyDate;
    private String ClassName;
    private String taskDescription; //任务描述

    public DutySchedule() {
    }

    public DutySchedule(int dutyId, int studentId, Date dutyDate, String taskDescription) {
        this.dutyId = dutyId;
        this.studentId = studentId;
        this.dutyDate = dutyDate;
        this.taskDescription = taskDescription;
    }

    // getters and setters

    public String getClassName() {
        return ClassName;
    }

    public DutySchedule setClassName(String className) {
        ClassName = className;
        return this;
    }

    public String getNumber() {
        return Number;
    }

    public DutySchedule setNumber(String number) {
        Number = number;
        return this;
    }

    public String getStuName() {
        return StuName;
    }

    public DutySchedule setStuName(String stuName) {
        StuName = stuName;
        return this;
    }

    public int getDutyId() {
        return dutyId;
    }

    public void setDutyId(int dutyId) {
        this.dutyId = dutyId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public java.sql.Date getDutyDate() {
        java.sql.Date date = new java.sql.Date(this.dutyDate.getTime());

        return date;
    }

    public void setDutyDate(Date dutyDate) {
        this.dutyDate = dutyDate;
    }

    public String getTaskDescription() {
        return taskDescription;
    }

    public void setTaskDescription(String taskDescription) {
        this.taskDescription = taskDescription;
    }
}

